package com.jia.service.impl;

import com.jia.domain.RoleMapper;
import com.jia.pojo.SysRole;
import com.jia.service.RoleMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class RoleMapperServiceImpl implements RoleMapperService {
    @Autowired
    private RoleMapper roleMapper;


    @Override
    public List<SysRole> findByUid(int id) {
        return roleMapper.findByUid(id);
    }
}
